package com.zhibi.util.http;

import java.util.Vector;   

/**  
 * HTTP响应对象
 * 
 */  
public class HttpRespons {   

	private String urlString;   //url请求地址
	private int defaultPort;   //默认端口
	private String file;   //主机后面的
	private String host;   //主机
	private String path;   //主机后面不带参数
	private int port;   //端口
	private String protocol; //  协议
	private String query;   //参数
	private String ref;   //
	private String userInfo;   
	private String contentEncoding;   //编码
	private String content;   //内容
	private String contentType;   //相应类型
	private int code;   //相应码
	private String message; //相应消息  
	private String method;   //相应方法
	private int connectTimeout;   //
	private int readTimeout;   
	Vector<String> contentCollection;   //相应内容

	public String getContent() {   
		return content;   
	}   

	public String getContentType() {   
		return contentType;   
	}   

	public int getCode() {   
		return code;   
	}   

	public String getMessage() {   
		return message;   
	}   

	public Vector<String> getContentCollection() {   
		return contentCollection;   
	}   

	public String getContentEncoding() {   
		return contentEncoding;   
	}   

	public String getMethod() {   
		return method;   
	}   

	public int getConnectTimeout() {   
		return connectTimeout;   
	}   

	public int getReadTimeout() {   
		return readTimeout;   
	}   

	public String getUrlString() {   
		return urlString;   
	}   

	public int getDefaultPort() {   
		return defaultPort;   
	}   

	public String getFile() {   
		return file;   
	}   

	public String getHost() {   
		return host;   
	}   

	public String getPath() {   
		return path;   
	}   

	public int getPort() {   
		return port;   
	}   

	public String getProtocol() {   
		return protocol;   
	}   

	public String getQuery() {   
		return query;   
	}   

	public String getRef() {   
		return ref;   
	}   

	public String getUserInfo() {   
		return userInfo;   
	}

	public void setUrlString(String urlString) {
		this.urlString = urlString;
	}

	public void setDefaultPort(int defaultPort) {
		this.defaultPort = defaultPort;
	}

	public void setFile(String file) {
		this.file = file;
	}

	public void setHost(String host) {
		this.host = host;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public void setPort(int port) {
		this.port = port;
	}

	public void setProtocol(String protocol) {
		this.protocol = protocol;
	}

	public void setQuery(String query) {
		this.query = query;
	}

	public void setRef(String ref) {
		this.ref = ref;
	}

	public void setUserInfo(String userInfo) {
		this.userInfo = userInfo;
	}

	public void setContentEncoding(String contentEncoding) {
		this.contentEncoding = contentEncoding;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public void setContentType(String contentType) {
		this.contentType = contentType;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public void setMethod(String method) {
		this.method = method;
	}

	public void setConnectTimeout(int connectTimeout) {
		this.connectTimeout = connectTimeout;
	}

	public void setReadTimeout(int readTimeout) {
		this.readTimeout = readTimeout;
	}

	@Override
	public String toString() {
		return "HttpRespons [urlString=" + urlString + ", defaultPort=" + defaultPort + ", file=" + file + ", host="
				+ host + ", path=" + path + ", port=" + port + ", protocol=" + protocol + ", query=" + query + ", ref="
				+ ref + ", userInfo=" + userInfo + ", contentEncoding=" + contentEncoding + ", content=" + content
				+ ", contentType=" + contentType + ", code=" + code + ", message=" + message + ", method=" + method
				+ ", connectTimeout=" + connectTimeout + ", readTimeout=" + readTimeout + ", contentCollection="
				+ contentCollection + "]";
	}   

	
} 